/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2022. All rights reserved.
 *
 */

import { AbilityTypeEnum } from '../../enum/ability-type-enum.js';
import { CodeType } from '../../enum/code-type-enum.js';
import { ConfigJson } from '../../options/configure/config-json-options.js';

export interface LegacyAbilityModel {
  /**
   * 返回ability的名称
   */
  getName(): string;

  /**
   * 返回ability的输入/输出的目录名
   */
  getRelateSrcPath(): string;

  /**
   * 返回ability的类型
   */
  getType(): AbilityTypeEnum;

  /**
   * 返回ability使用的编译语言
   *
   * 只可CodeType.ets或者CodeType.js
   */
  getSrcLanguage(): CodeType;

  /**
   * 返回ability对应的js标签
   */
  getConfigJsonJsObj(): ConfigJson.JsObj | undefined;
}
